.detection-task-modal {
  .ant-modal-body {
    margin: 40px 24px 0 24px;
    background-color: #fff;
    position: relative;
  }

  .ant-modal-header,
  .ant-modal-content {
    background-color: #f4f6f7 !important;
  }

  .ant-modal-header {
    color: #585e65;
  }

  .ant-modal-footer {
    padding: 20px;
    text-align: center;
    border: none;
  }

  .ant-tabs-ink-bar {
    display: none !important;
  }

  .detection-restore-btn {
    background-color: #f4f6f7;
    height: 40px;
    line-height: 40px;
    position: absolute;
    top: -40px;
    right: 0;

    .ant-btn {
      padding: 5px;
    }
  }

  .item {
    display: flex;
    align-items: center;

    &:not(:last-child) {
      margin-bottom: 24px;
    }

    .item-title {
      display: inline-block;
      min-width: 85px;
      color: #686c78;
      white-space: nowrap;

      .anticon-exclamation-circle {
        margin-left: 6px;
      }

      &.required {
        &::before {
          content: '*';
          color: red;
          margin-right: 2px;
        }
      }
    }
  }

  .number {
    position: relative;
    height: 32px;
    margin-bottom: 24px;
    padding: 6px 32px;
    border-radius: 16px;
    background-color: #f7f9fc;
    color: #1e1f23;

    &::before {
      position: absolute;
      display: block;
      width: 8px;
      height: 8px;
      left: 16px;
      top: 12px;
      border-radius: 50%;
      background-color: #0b6fd6;
      content: '';
    }

    span {
      margin-left: 32px;
      color: #0b6fd6;
    }
  }

  .vul-strategy-item {
    display: flex;
    margin-bottom: 24px;

    &-sub-title {
      flex: 0 0 96px;
    }
    &-sub-title::before {
      color: red;
      content: '* ';
    }

    &-sites {
      display: flex;
      flex-wrap: wrap;
      width: 375px;
      height: 56px;
      padding-left: 8px;
      border: 1px solid #e7ebf0;
      background-color: #f7f9fc;
      overflow-y: auto;

      .site-tag {
        max-width: 140px;
        max-height: 24px;
        margin: 8px 8px 0 0;
        padding: 0 8px;
        border: 1px solid #e7ebf0;
        color: #999ea8;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    &-template {
      width: 375px;

      &-radio {
        margin-bottom: 8px;
      }

      &-validate-error {
        color: #ff0000;
        margin-top: 8px;
        margin-bottom: 0;
      }
    }

    .run-at-name {
      display: none;
    }

    .run-at-now {
      margin-right: 18px !important;
    }

    .ant-switch-small {
      margin-top: 2px;
    }
  }

  .validate-error-custom {
    margin-top: -9px;
    font-size: 12px;
    margin-bottom: 0;
    color: red;
  }

  .validate-error {
    margin-top: -18px;
    font-size: 12px;
    margin-bottom: 0;
    color: red;

    &.name-error,
    &.time-range-error,
    &.location-error,
    &.ip-info-error {
      margin-left: 85px;
    }
    &.ignore-ips-error {
      margin-left: 65px;
    }

    &.time-range-error {
      margin-left: 125px;
    }
  }

  .port-title,
  .goal-title {
    margin-bottom: 12px !important;

    .ant-radio-group {
      margin-left: 5px;
      flex: 1;

      span.ant-radio + * {
        padding-right: 0;
        padding-left: 4px !important;
      }
    }

    .clear {
      cursor: pointer;
      white-space: nowrap;
      font-size: 13px;
      opacity: 0.7;

      img {
        margin-bottom: 4px;
        margin-right: 3px;
        height: 10px;
      }
    }
  }

  .interface-title {
    margin-bottom: 24px;

    .ant-select {
      min-width: 100px;
    }
  }

  .target.ip-ranges,
  .ports {
    margin-bottom: 24px;
  }

  .target.location {
    margin-left: 85px;
    margin-bottom: 24px;

    .ant-cascader-picker {
      width: 100%;
    }

    .ant-cascader-picker,
    .address {
      margin-bottom: 12px;
    }

    .ant-btn {
      margin-right: 6px;
    }
  }

  .target.ip-info {
    margin-left: 85px;
    margin-bottom: 24px;

    .info-input {
      margin-bottom: 12px;
    }

    .ant-btn {
      margin-right: 6px;
    }
  }

  .target.ips {
    margin-bottom: 20px;
  }

  .ignore-ips-item {
    margin-bottom: 20px;
  }

  .attachment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;

    label {
      flex: 0 0 85px;
      line-height: 32px;
    }

    .upload-action {
      overflow: hidden;
    }

    .download-example {
      margin-left: 6px;
      line-height: 32px;
      white-space: nowrap;
    }
  }

  .select-wrapper {
    display: flex;
    margin-bottom: 12px;

    label {
      flex: 0 0 85px;
    }

    .ant-select {
      flex: 1;
    }
  }

  .ignore-ips {
    align-items: flex-start;

    .item-title {
      margin-right: 10px;
    }

    &-item {
      margin-left: 66px;
      margin-top: 10px;
      display: flex;
      justify-content: space-between;

      .clear {
        cursor: pointer;
        white-space: nowrap;
        font-size: 13px;
        opacity: 0.7;
        margin-right: 44px;

        img {
          margin-bottom: 4px;
          margin-right: 3px;
          height: 10px;
        }
      }
    }

    textarea {
      max-width: 80%;
    }
  }

  .cycle-config {
    margin: -16px 0 24px 85px;
    > .ant-select {
      min-width: 40px;
    }
    .ant-input-number {
      margin-right: 12px;
    }
  }

  .web-finger-detect,
  .depth-detect,
  .time-range {
    .item-title {
      min-width: 125px;
    }
  }

  .date-picker-range {
    margin-left: 20px;
  }

  .connectionCount {
    display: block;

    .icon-question {
      margin: 0 10px 0 5px;
    }

    .icon-exclamation {
      padding-left: 5px;
      font-size: 14px;
    }
  }

  // 高级配置
  .advance {
    border: none;
    background-color: #fff;

    .ant-collapse-item-active {
      .ant-collapse-header {
        margin-bottom: 24px;
      }
    }

    .ant-collapse-header {
      padding: 0 !important;
      margin: 0 !important;
      color: #0b6fd6 !important;
      background-color: #fff;

      .ant-collapse-arrow {
        left: 60px !important;

        svg {
          transform: rotate(180deg);
        }
      }
    }

    .ant-collapse-item {
      border: none;
    }

    .ant-collapse-content {
      border: none;
    }

    .ant-collapse-content-box {
      padding: 0;
    }

    .daily-start {
      margin-right: 6px;
    }
  }

  .item-margin {
    margin-left: 10px;
  }
}

.drawer-title {
  color: red !important;
}

.Checkbox-group {
  .ant-checkbox-group-item {
    margin-right: -6px;
  }
}

.Checkbox-button {
  float: right;
  margin-right: -20px;
  padding: 0;
}
